package com.asion.vmovie.ui.MVPContract;

import com.asion.vmovie.beans.SeriesDetialsBean;
import com.asion.vmovie.beans.VideoBean;
import com.asion.vmovie.ui.MVPModel.BaseModel;
import com.asion.vmovie.ui.MVPPresenter.BasePresenter;
import com.asion.vmovie.ui.MVPView.BaseView;

/**
 * Created by asion on 16-10-21.
 */

public interface XiLieDetialContract {

    interface Model extends BaseModel{
        void getSeriesDetial(int seriesid,OnGetSeriesData onGetSeriesData);
        void getVideo(int series_postid,OnGetVideoData onGetVideoData);
    }

    interface View extends BaseView<Object>{

    }

    abstract class Presenter extends BasePresenter<View,Model>{
        public abstract void getSeriesDetial(int seriesid);
        public abstract void getVideoDetial(int series_postid);
    }

    interface OnGetSeriesData{
        void onGetSuccess(SeriesDetialsBean seriesDetialsBean);
        void onGetError(Throwable throwable);
    }
    interface OnGetVideoData{
        void onGetSuccess(VideoBean videoBean);
        void onGetError(Throwable throwable);
    }
}
